import { OtherDetailParams } from "@/interface/public";
import { Material } from "./basic";

// 粉碎投入
export namespace SmashIn {
  // 保存
  export interface Save {
    workerId: string;
    line: string;
    packageType: string;
    packageNum: string;
    materialId: string;
    c_cname?: string;
    sumWeight: string;
    tareWeight: string;
    netWeight: number;
    inType: string;
    remark: string;
    douser: string;
  }
}

// 粉碎
export namespace Smash {
  //明细
  export interface searchDetail extends OtherDetailParams {
    records: SearchDetailProp[];
  }
  export interface SearchDetailProp extends Material.M_SearchProp {
    materialObj: Material.SearchProp;
    sourceMaterialObj: Material.SearchProp;
    id: number;
    workerId: number;
    line: string;
    warehouse: string;
    packageType: string;
    packageNum: number;
    materialId: number;
    sumWeight: number;
    tareWeight: number;
    netWeight: number;
    inType: string;
    remark: string;
    douser: string;
    dotime: string;
    uptime: string;
  }
}

// 粉碎产出
export namespace SmashOut {
  // 保存
  export interface Save {
    workerId: string;
    line: string;
    packageType: string;
    packageNum: string;
    sourceMaterialId: string;
    materialId: string;
    sumWeight: string;
    tareWeight: string;
    netWeight: number;
    outType: string;
    warehouse: string;
    remark: string;
    source_cname?: string;
    c_cname?: string;
  }
}
